//reading chars with cin.get()
#include <iostream>
int main(void)
{
    using namespace std;
    char ch;
    int count =0 ;


    while((ch = cin.get()) != EOF )//test for EOF
    {
        count << ch;//echo character
        ++count;

    }
    cout << endl <<count << "characters read\n";
    return 0;
}
